#!/usr/bin/env bash

set -ex

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
VENV_DIR="$HOME/.venv-panda"
(
    cd "$SCRIPT_DIR"
    mkdir -p "$VENV_DIR"
    python3 -m venv "$VENV_DIR"
    source "$VENV_DIR"/bin/activate
    python3 -m pip install poetry
    poetry update
)
